﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TWCRM.Entity;

namespace TWCRM.Models.Home
{
    public class OrderModel
    {
        public Guid ID { get; set; }
        public bool IsNew { get; set; }

        public DateTime OrderDate { get; set; }
        public string OrderDateStr {
            get {
                return OrderDate.ToString("yyyy-MM-dd");
            }
        }
        public DateTime Date { get; set; }
        public string DateStr
        {
            get {
                return Date.ToString("yyyy-MM-dd");
            }
        }

        public Guid CustomerID { get; set; }
        public string Customer { get; set; }

        public decimal TotalPrice { get; set; }

        public string OrderDetail { get; set; }
        public List<OrderDetail> OrderDetails { get; set; }
    }
}